define(function(require, exports, module) {
	var $=require('zepto');
	function App() {}
	module.exports = App;
	//动态引入css文件
	App.addCssFile=function(path,id,callback){
		if(document.querySelector("#"+id)){
			callback();
		}else{
			var cssObj = document.createElement("link");
			cssObj.setAttribute("type", "text/css");
			cssObj.setAttribute("rel", "stylesheet");
			cssObj.setAttribute("id", id);
			cssObj.setAttribute("href", path+"?"+new Date().getTime());
			cssObj.async=true;
			document.getElementsByTagName("head")[0].appendChild(cssObj)
			var timer0=-1;
			checkCssOnload();
			function checkCssOnload(){
				clearTimeout(timer0);
				if(!document.querySelector("#"+id+"FooterCss")){
					var dom=document.createElement("div");
					dom.id=id+"FooterCss";
					document.body.appendChild(dom);
				}
				if(document.getElementById(id+"FooterCss")){
					document.body.removeChild(document.querySelector("#"+id+"FooterCss"));
					callback();
				}else{
					timer0=setTimeout(checkCssOnload,10);
				}
				
			};
		}
	}
});